package config;

import config.beans.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;

@Configuration
public class MyAppConfig {

    @Bean
    @Scope("prototype")
    @Lazy(value =false)
    public User user() {
        return new User();
    }
}